<?php

class LoginForm extends Zend_Form
{
	public function __construct($options = null)
    {
        parent::__construct($options);
        $this->setName('userLogin');

        $login = new Zend_Form_Element_Text('login');
        $login
            ->setLabel('Login')
            ->setRequired(true)
            ->addValidator('NotEmpty')
            ;

        $password = new Zend_Form_Element_Password('password');
        $password
            ->setLabel('Password')
            ->setRequired(true)
            ->addValidator('NotEmpty')
            ;            

        $submit = new Zend_Form_Element_Submit('submit');

        $this->addElements(
            array($login, $password, $submit)
        );
    }

}